package com.cyl.manager.yee.domain;

import java.time.LocalDateTime;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cyl.yeepay.dto.YeeComplaintInfoFlatDto;
/**
 * 会员订单投诉对象 yee_complaint_info_flat
 * 
 * @author hxw
 */
@ApiModel(description="会员订单投诉对象")
@Data
@TableName("yee_complaint_info_flat")
public class ComplaintInfoFlat {

	
	public ComplaintInfoFlat() {
		super();
	}
	
	public ComplaintInfoFlat(YeeComplaintInfoFlatDto cif) {
		super();
		this.complaintNo = cif.getComplaintNo();
		this.complaintTime = LocalDateTime.parse(cif.getComplaintTime());
		this.tradeTime = LocalDateTime.parse(cif.getTradeTime());
		this.amount = cif.getAmount();
		this.problemDescription = cif.getProblemDescription();
		this.complaintDetail = cif.getComplaintDetail();
		this.complaintCount = cif.getComplaintCount()+"";
		this.wechatMerchantno = cif.getWechatMerchantNo();
		this.merchantNo = cif.getMerchantNo();
		this.wechatOrderNo = cif.getWechatOrderNo();
		this.merchantOrderNo = cif.getMerchantOrderNo();
		this.applyRefundAmount = cif.getApplyRefundAmount();
		this.complaintState = cif.getComplaintState();
		this.complaintOpenId = cif.getComplaintOpenId();
		

		this.clzt = "1";
	}

	private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("投诉单号")
    @Excel(name = "投诉单号")
    private String complaintNo;

    @ApiModelProperty("投诉时间")
    @Excel(name = "投诉时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime complaintTime;

    @ApiModelProperty("交易时间")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime tradeTime;

    @ApiModelProperty("交易金额")
    @Excel(name = "交易金额")
    private String amount;

    @ApiModelProperty("问题描述")
    @Excel(name = "问题描述")
    private String problemDescription;

    @ApiModelProperty("投诉详情")
    @Excel(name = "投诉详情")
    private String complaintDetail;

    @ApiModelProperty("用户投诉次数")
    @Excel(name = "用户投诉次数")
    private String complaintCount;

    @ApiModelProperty("微信商户号")
    @Excel(name = "微信商户号")
    private String wechatMerchantno;

    @ApiModelProperty("商户编号")
    @Excel(name = "商户编号")
    private String merchantNo;

    @ApiModelProperty("微信订单号")
    @Excel(name = "微信订单号")
    private String wechatOrderNo;

    @ApiModelProperty("易宝商户订单号")
    @Excel(name = "易宝商户订单号")
    private String merchantOrderNo;

    @ApiModelProperty("申请退款金额")
    @Excel(name = "申请退款金额")
    private String applyRefundAmount;

    @ApiModelProperty("投诉单状态")
    @Excel(name = "投诉单状态")
    private String complaintState;

    @ApiModelProperty("微信openid")
    @Excel(name = "微信openid")
    private String complaintOpenId;

    @ApiModelProperty("直播间部门")
    @Excel(name = "直播间部门")
    private Long deptZbjId;

    @ApiModelProperty("团长部门")
    @Excel(name = "团长部门")
    private Long deptTzId;

    @ApiModelProperty("店铺部门")
    @Excel(name = "店铺部门")
    private Long deptDpId;

    @ApiModelProperty("用户id")
    @Excel(name = "用户id")
    private Long memberId;

    @ApiModelProperty("昵称")
    @Excel(name = "昵称")
    private String nickname;

    @ApiModelProperty("处理结果")
    @Excel(name = "处理结果")
    private String cljg;

    @ApiModelProperty("处理状态")
    @Excel(name = "处理状态")
    private String clzt;

    @ApiModelProperty("处理时间")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime clTime;

}
